package com.blog.Bard.base.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.Data;

@Data
@Entity
@Table(name="bardArticle")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class BardArticle implements Serializable{
	 
	
	private static final long serialVersionUID = 4072292491897812042L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(unique=true, nullable=false)
	private Integer id;

	@Column(nullable=false)
	private String articleName;
	
	@Column
	private String articleContent;
	
	@Column
	private String articleContentHtml;

	@Column(nullable=false)
	private Integer userId;
	
	@Column(nullable=false)
	private String username;
	
	@Column(nullable=false)
	private Date createDate;
	
	@Column(nullable=false)
	private Date optDate;
	
	@Column(nullable=false)
	private Integer articleStatus;
	
}
